def pets(func):
    def dog():
        print("狗：汪汪汪~~~~")
        func()

    def cat():
        print('猫：喵喵喵~~~~~~~')
        func()

    def PetsSpeak():
        dog()
        cat()
    return PetsSpeak


def speak():
    print('翻译：我饿了')


translate = pets(speak)
translate()
